/*
 * Copyright (c)  2020,  DataPipeline
 * All rights reserved.
 *
 * Id:SQLSource.java   2020-07-16 00:11 wanglijun
 */
package cn.datacare.orm.source;

import static cn.datacare.orm.loader.ClassPathLoader.SQLFileVersion;

/**
 * <p>
 * Title: SQLSource代码
 * </p>
 * <p>
 * Description: SQLSource代码
 * </p>
 * <p>
 * Copyright: Copyright (c) 2020
 * </p>
 * <p>
 * Company/Department: DataPipeline
 * </p>
 *
 * @author wanglijun
 * @version 1.0
 * @since 2020-07-16 00:11
 */
public class SQLSource {

    protected String id;

    protected String template;
    /***
     * SQL文件版本
     */
    protected SQLFileVersion version = new SQLFileVersion();
    private int line = 0;

    public SQLSource() {
        super();
    }

    /***
     *
     * @param id
     * @param template
     */
    public SQLSource(String id, String template) {
        super();
        this.id = id;
        this.template = template;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTemplate() {
        return template;
    }

    public void setTemplate(String template) {
        this.template = template;
    }

    public int getLine() {
        return line;
    }

    public void setLine(int line) {
        this.line = line;
    }

    public SQLFileVersion getVersion() {
        return version;
    }

    public void setVersion(SQLFileVersion version) {
        this.version = version;
    }
}
